package com.sun.service.user;

import com.sun.model.entity.UserInfo;
import com.sun.model.example.UserInfoExample;
import com.sun.model.mapper.UserInfoMapper;
import com.until.server.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author AdminUser
 */
@Service
public class UserInfoService extends BaseService<UserInfo, UserInfoExample,String> implements UserInfoMapper  {
    /*
      处理post 请求中的select
     */
    {
        postMap.map.put("UserLogin", UserServiceHelp.userLogin);
    }

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public long countByExample(UserInfoExample example) {
        return 0;
    }

    @Override
    public int deleteByExample(UserInfoExample example) {
        return 0;
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(UserInfo record) {
        return userInfoMapper.insert(record);
    }

    @Override
    public int insertSelective(UserInfo record) {
        return userInfoMapper.insertSelective(record);
    }

    @Override
    public List<UserInfo> selectByExample(UserInfoExample example) {
        return userInfoMapper.selectByExample(example);
    }

    @Override
    public UserInfo selectByPrimaryKey(Integer id) {
        return userInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(UserInfo record, UserInfoExample example) {
        return 0;
    }

    @Override
    public int updateByExample(UserInfo record, UserInfoExample example) {
        return 0;
    }

    @Override
    public int updateByPrimaryKeySelective(UserInfo record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(UserInfo record) {
        return 0;
    }

    @Override
    public List<UserInfo> coreSelection(UserInfo model, String action, HttpMethod method) throws Exception {
        return selectByExample(this.getExtension(model, action, method));
    }
}
